const { ipcRenderer } = require('electron')

window.addEventListener('DOMContentLoaded', () => {
  // alert('greeting from the dom side')
  // document.getElementById('message').innerHTML = 'Hello render'
  console.log('ipcRender', ipcRender)
  ipcRenderer.send('message', 'message from renderer')
  ipcRenderer.on('reply', (event, arg) => {
    console.log('reply', arg)
    document.getElementById('message').innerHTML = arg
  })
})
